//
//  NewPicView.h
//  CustomImagePicker
//
//  Created by kingsoft on 11-1-21.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface NewPicView : UIButton {
	UIImage* imgNewsPic;
	UIActivityIndicatorView* m_spinner;

	bool bInitSpinner;
	bool bIsDownUrl;
	bool bThreadStart;
	
	NSString* imgID;
	NSString* imgTitle;
	NSString* imgSaveFile;
	NSString* imgUrl;
}

@property (nonatomic, retain) NSString* imgID;
@property (nonatomic, retain) UIImage* imgNewsPic;
@property (nonatomic, retain) NSString* imgTitle;
@property (nonatomic, retain) NSString* imgUrl;
@property (nonatomic, retain) NSString* imgSaveFile;

-(void) refrashView;
//-(void) setImgUrl:(NSString* ) strImgUrl title:(NSString*) strTitle newsID:(NSString*) strNewsID;
-(void) startTheBackgroundJob :(NewPicView *) selfPicView;
-(void) startGetImgThread;
-(void) initImgLocalFile;
-(void) loadUrlThreadFun;

@end
